package br.com.ordersys.framework.scheduler;

import java.util.Collection;
import java.util.Date;

public class JobExecutionHistory {
	private long timeSpent;
	private Collection<String> messageList;
	private Date nextFireTime;
	private Throwable errorThrown;

	public JobExecutionHistory(long timeSpent, Collection<String> messageList, Date nextFireTime) {
		this.timeSpent = timeSpent;
		this.messageList = messageList;
		this.nextFireTime = nextFireTime;
	}

	public Throwable getErrorThrown() {
		return errorThrown;
	}

	public void setErrorThrown(Throwable errorThrown) {
		this.errorThrown = errorThrown;
	}

	public long getTimeSpent() {
		return timeSpent;
	}

	public Collection<String> getMessageList() {
		return messageList;
	}

	public Date getNextFireTime() {
		return nextFireTime;
	}
}
